package com.sxit.tdf.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * @author 橙子高🍊
 * @since 2022-02-06
 */
@TableName("tb_permission")
@Schema(name = "Permission对象", description = "")
public class Permission implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @Schema(description = "权限")
  private String permissionName;

  @Schema(description = "模块ID")
  private Integer moduleId;

  @Schema(description = "行为ID")
  private Integer actionId;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getPermissionName() {
    return permissionName;
  }

  public void setPermissionName(String permissionName) {
    this.permissionName = permissionName;
  }

  public Integer getModuleId() {
    return moduleId;
  }

  public void setModuleId(Integer moduleId) {
    this.moduleId = moduleId;
  }

  public Integer getActionId() {
    return actionId;
  }

  public void setActionId(Integer actionId) {
    this.actionId = actionId;
  }

  @Override
  public String toString() {
    return "Permission{"
        + "id="
        + id
        + ", permissionName="
        + permissionName
        + ", moduleId="
        + moduleId
        + ", actionId="
        + actionId
        + "}";
  }
}
